<?php if(!defined('PATH_HD'))exit;
$db->exe("DROP TABLE IF EXISTS `ec_category`");
$db->exe("CREATE TABLE `ec_category` (
  `cid` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '栏目表主键',
  `catname` varchar(45) NOT NULL DEFAULT '' COMMENT '栏目名称',
  `pid` smallint(5) unsigned NOT NULL COMMENT '栏目父ID',
  `catdir` varchar(200) NOT NULL DEFAULT '' COMMENT '栏目静态文件存放目录',
  `keywords` varchar(100) NOT NULL DEFAULT '' COMMENT '栏目关键字',
  `description` varchar(200) NOT NULL DEFAULT '' COMMENT '描述（SEO）',
  `cattpl` varchar(100) NOT NULL DEFAULT '' COMMENT '列表页模板',
  `arctpl` varchar(100) NOT NULL DEFAULT '' COMMENT '内容页模板',
  `cathtml` varchar(100) NOT NULL DEFAULT '' COMMENT '栏目静态html规则',
  `archtml` varchar(100) NOT NULL DEFAULT '' COMMENT '栏目内容页静态规则',
  `issend` tinyint(1) NOT NULL DEFAULT '1' COMMENT '栏目是否能写入文章',
  PRIMARY KEY (`cid`)
) ENGINE=MyISAM AUTO_INCREMENT=38 DEFAULT CHARSET=utf8 COMMENT='文章栏目表'");
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (1,"新闻",0,"{pathhtml}","新闻栏目","企业新闻栏目","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (2,"国内",1,"{pathhtml}","国内新闻","国内新闻","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (3,"国际新闻",1,"{guoji}","国际新闻","国际新闻","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (4,"军事",1,"{军事}","军事新闻","军事新闻","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (5,"互联网",1,"{hulianwang}","互联网新闻","互联网新闻","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (6,"财经",1,"{caijing}","财经新闻","财经新闻","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (24,"农特产品",0,"{template}","农特产品","农特产品","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (22,"新闻动态",21,"{template}","新闻动态","新闻动态","news.html","new.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (23,"精彩活动",21,"{template}","精彩活动","精彩活动","news.html","new.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (21,"农庄新闻",0,"{template}","农庄新闻","农庄新闻","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (11,"游戏",1,"{game}","游戏类","游戏类栏目","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (12,"教育",1,"{teach}","教育类","教育类栏目","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (13,"女人",1,"{women}","女人","女人","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (14,"科技",1,"{keji}","科技类","科技类栏目","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (15,"社会",1,"{shehui}","社会类栏目","社会类栏目","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (16,"社会",1,"{shehui}","社会","shehui","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (17,"视频",1,"{shipin}","视频","视频","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (18,"图片",1,"{tupian}","图片","图片","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (19,"人物",1,"{renwu}","人物","人物","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (20,"滚动快讯",1,"{kuaixun}","滚动快讯","滚动快讯","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (25,"水果类",24,"{template}","水果类","水果类","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (26,"关于农庄",0,"{template}","关于农庄","关于农庄","about.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (27,"人才招聘",26,"{template}","人才招聘","人才招聘","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (28,"联系我们",26,"{template}","联系我们","联系我们","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (29,"办公室",0,"bangongshi","办公室","办公室","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (30,"主要业务",0,"zyyw","主要业务","主要业务","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (31,"诉讼",30,"susong","诉讼","诉讼","susong.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (32,"非诉讼",30,"feisusong","非诉讼","非诉讼","susong.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (33,"干果类",24,"{ganguo}","干果类","干果类","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (34,"蔬菜类",24,"{shucai}","蔬菜类","蔬菜类","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (35,"粮食类",24,"{liangshilei}","粮食类","粮食类","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (36,"养殖品",24,"{yangzhi}","养殖品","养殖品","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');
$db->exe('REPLACE INTO `ec_category`(`cid`,`catname`,`pid`,`catdir`,`keywords`,`description`,`cattpl`,`arctpl`,`cathtml`,`archtml`,`issend`)VALUES (37,"肉质类",24,"{肉质类}","肉质类","肉质类","list.html","arc.html","{htmlpath}/{catdir}/{cid}.html","{htmlpath}/{catdir}/{y}{m}/{aid}.html",1)');

?>